<?php
################ AVConference 1.2 Configuration file ##############
######################## MANDATORY FIELDS #########################
//when tne admin interface, admin.swf will request this file from the http server it will send &admin=true via GET
if (isset($_GET['admin']) && $_GET['admin']=="true"){
	//integration_before_admin.php most commonly contains code for integrating with 3rd party cms systems
	if (file_exists("integration_before_admin.php")){include("integration_before_admin.php");}
}else{
	//integration_before.php most commonly contains code for integrating with 3rd party cms systems
	if (file_exists("integration_before.php")){ include("integration_before.php");}
}
//connectionstring:String
//description: the rtmp connection string to the avconference application on your Flash Media Server server
//values: 'rtmp://localhost/avconference12/roomx/', 'rtmp://myfmsserver.com/avconference12/room17/', etc...
$connectionstring='';

######################### GET VARS SENT BY THE SWF ################

//randomVar can be specified as a flash var in the HTML embed code for the swf like this index.swf?randomVar=XXY
if ($_GET && $_GET["randomVar"]){
	$randomVar=$_GET["randomVar"];
}

######################### OPTIONAL FIELDS (GENERAL) ###############
//fontsize:Number
//description: the size of the font used in teh text chat window
//values: 10,11,12,etc...
$fontsize=11;

//applyLangaugeFilter:String
//description:activates or deactivates bad language filter
//values: 0,1
//default: 1
$applyLangaugeFilter=1;

//autoStartMyCamera:Number
//description: if set to 1, when a user has a webcamera, immediatley after connecting his camera will start broadcasting, if set to 0, the user will have to press the "Start my camera" button to start it
//values 0,1 
//default :0
$autoStartMyCamera=0;

//usnminchars
//description: the minimum numbers of characters a username must have, if you provide 0 or a negative value it will default to 1
//values: 3,4,5.. any number
//defalt: 3
$usnminchars=3;

//username:String
//description: the default username to be used in the Login NICK log in box in the flash user interface
//values:only words with characters in this range: 0..9,a..z,A..Z,@,.
//default:''
$username=utf8_encode('');

//changeuser:Boolean
//description: allows or denies a user to edit his nickname in the NICK log in box in the flash user interface
//values: 0, 1
//default: 1
$changeuser=1;

//gender:String
//description: the default gender to be used in the gender radio buttons in the flash user interface
//values: 'male', 'female', 'couple'
//default selected: 'male'
$gender='';

//changegender:Boolean
//description: allows or denies a user to modify his gender in the NICK log in box in the flash user interface
//values: 0,1
//default: 1
$changegender=1;

//privatemessages:Number
//decription: enable/disable the PM function
//values: 0,1
//default: 1 (enabled)
$privatemessages=1;

//jlmessages:Number
//description: set to 0 if you do not want all those 'joined', 'left' messages to show up in the text chat area
//values: 0,1
//default: 1
$jlmessages=1;

//autoStartCameras
//description: if set to 1 as soon as a person starts his webcam, all the other persons logged in will start viewing it, also if set to 1 , when you log in all the avaialable cameras will start playing. Set to 1 for coneference scenarios
//values: 0,1 
//default:1 
$autoStartCameras=1;

//bandwidthurl
//description: relative path to the .xml file containing video settings. Use it to give some users the ability to send higher quality video than others.
//default: 'audio_video_quality_profiles/256k_high_motion_low_picture_quality.xml'
$bandwidthurl='audio_video_quality_profiles/256k_high_motion_low_picture_quality.xml';

//playSoundOnmessage
//description: set to 1 so that a sound will play every time a text message comes in
//values: 0,1
//default:1
$playSoundOnmessage=1;

//showTimeStamps
//description: if set to 1 in the text chat window the time at which each text message camed in will be displayed
//values: 0,1
//default:1
$showTimeStamps=1;

//maxUploadFileSize
//description: the maximum size (in bytes) of the files that can be uploaded to the Shared Folder
//values: numbers, bytes
//default: 524288(=0.5 MB)
$maxUploadFileSize=524288;

//fileSharingEnabled
//description: if set to 0 the "Shared Files" window will not show up in the chat interface
//values: 0,1
//default:1
$fileSharingEnabled=1;

//maxcams
//description: the max number of cams a person can watch
//values: 0,1,2,3,etc...
//default:4
$maxcams=4;

//allowSendAudioVideo text mode only
//description: set to 0 if the user should not eb able to send video and audio
//values: 0,1
//default:1
$allowSendAudioVideo=1;

//coupleGenderEnabled
//description: set to 0 if you want to hide the couple gender option
//values:1,0
//default:1
$coupleGenderEnabled=1;

//maxIncomingVideoSpeed:Number
//description: 
//values: -1
//default:-1
$maxIncomingVideoSpeed=-1;

//freeVideoTime:Number
//description: the ammount of time (in seconds) that a "free" user can view other videos in 1 day. Each "day" starts at midnight(00:00:00) and ends at 23:59:59 the same day, based on the clock of the users computer. Set to -1 to disable it.
//values:seconds
//default:6000
$freeVideoTime=6000;

//secondsBetweenBuzzez:Number
//description: after using the [BUZZ] button , it il be disabled for a few seconds, use this variable to set the ammount of seconds
//values:0,1,10,etc...
//default:10
$secondsBetweenBuzzez=10;

//backgroundImageUrl
//description: the URl to a jpeg, gif, png image or a swf animation, the fiel needs to be on the same exact (sub)domain as the swf file
//values: image.jpg, animation.swf, transparency.png
//default: "pattern_061.gif"
$backgroundImageUrl='pattern_061.gif';

//backgroundImageAlpha
//backgroundImageAlpha: the opacity level of the background image, set to 100 for a non transparent background image, set to 0 for a fully transparent background image
//values:0 to 100
//default:100
$backgroundImageAlpha=10;

//backgroundImageScale
//description: shoudl the background image specified above scale to the width and height of the .swf file when the swf file is loaded in the browser. A good source for tile images is http://squidfingers.com/patterns
//values:none, tile,fit
//default:tile
$backgroundImageScale='tile';

//highlightEmoteIcons:Number
//description: should emoteicons like text be bolded by default or left alone
//values:0,1
//default:1
$highlightEmoteIcons=1;

//tooltipsEnabled
//description: set to 0 if you want to disable the tooltips
//values:0,1
//default:1
$tooltipsEnabled=1;

//adminIsVisible:Number
//description: when the admin will log in will his visible or invisible radio button be checked?
//values:1 so that the 'invisible' checkbox is selected,0 so that the 'visible' checkbox is selected
//default:0 //visible
$adminIsVisible=0;

//toggleVisibilityEnabled:Number
//description: is the admin allowed to change its visibility settings set above
//values:1,0
//default:1
$toggleVisibilityEnabled=1;

//sortorder:String
//description: teh way the list of users is sorted, set to camsfirst so that users with cams/microphones activated are placed at the top of the list
//values:alphabetical,camsfirst
//default:alphabetical
$sortorder='alphabetical';

//disableGenderSelection:Number
//description: if set to 1, gender options from the login screen are hidden and everyone is considered a male, has no effect on admins
//values:1,0
//default:0
$disableGenderSelection=0;

//adminCanBan
//description: can the admin ban people?! 
//values: 0 for no , 1 for yes
//default:1
$adminCanBan=1;

//adminCanKick
//description: can the admin kick people?! 
//values: 0 for no , 1 for yes
//default:1
$adminCanKick=1;

//adminCanViewPrivatePM
//description: can the admin view private PM's exchanged between people?! 
//values: 0 for no , 1 for yes
//default:1
$adminCanViewPrivatePM=1;

//buzzButtonEnabled
//description: is the BUZZ button enabled in the flash interface?!
//values: 0 for no , 1 for yes
//default:1
$buzzButtonEnabled=1;

//allowLinksInTextChat
//description: shoul you turn this feature off, links will be censured from the text chat
//values: 0 for no , 1 for yes
//default:1
$allowLinksInTextChat=1;

//textChatCharLimit
//description: the number a characters the input text box for the text chat (im) and public supports, use for limiting spamming and repeated messages, the admin gets twice as much
//values: numbers
//default:200
$textChatCharLimit=200;

//showLoginError
//description: if set to 1, the chat interface will display a "need to be logged in message" and will not let the user connect, good for when integrating
//value:0,1
//default:0
$showLoginError=0;

//showIps
//description: if set to 1, the chat interface will display the ips of the clients in the userslist
//value:0,1
//default:0
$showIps=0;

//floatingMode:Boolean
//floatingMode: if set to 1 the avconference area will be split into 2 vertically, the text+userslist+filesharing panels will occupy the bottom 50%, the webcams will be centered vertically in the top 50%
//value:0,1
//default: 0
$floatingMode=0;

//videoChatOnly:Boolean
//description: if set to 1 the text chat, users list and file sharing panel are hidden
//value:0,1
//default: 0
$videoChatOnly=0;

//languageCode:String
//description: used to specify the language to be used in AVConference. 
//description: If you change it to "fr" for example you need to have a "fr" folder and 2 xml files in that folder: "fr/index_fr.xml" and "fr/admin_fr.xml", AVConference will load these xml files and use them.
//default: "en"
$languageCode="en";

//windowsColor:String
//description: the hex color of the windows inside AVConference
//default: "0x171717"
$windowsColor= "0x171717";

//sendColor:String
//description: the hex color of the Send Text Chat Button inside AVConference
//default: "0xff0000"
$sendColor= "0xff0000";

//userCanDragWindows
//description: weather or not the windows inside AVConference are draggable
//values: 1 for true, 0 for false
//default: 1
$userCanDragWindows =1;

//autoCloseCams:Number
//description: if set to 1, when a user I'm watching leaves the room, his webcam will be removed from the stage instead of saying "this user has left the room" or "this user has stopped broadcasting"
//values 0,1 
//default :0
$autoCloseCams=0;

//disableCameraWindowResize:Number
//description: if set to 1 the user will no longer be able to resize the camera window.
//values 0,1 
//default :0
$disableCameraWindowResize=0;

//windowsFontColor:String
//description: the hex color of the text of the windows inside AVConference
//default: "0xcccccc"
$windowsFontColor="0xcccccc";

//hideUsersList:Number
//description: this setting controls whether or not the users list is hidden or not.
//values 1 for hidden, 0 to show it.
//default: 0
$hideUsersList=0;

//errorTextColor:String
//description: the hex color of the errors that are shown by AVConference.
//default: "0xffffff"
$errorTextColor="0xffffff";

//loginTextColor:String
//description: the hex color of the texts shown at login;
//default: "0xffffff"
$loginTextColor="0xffffff";

##################### DO NOT EDIT BELOW ############################
if (file_exists("integration.php")){
	// integration.php exists in the components/modules for third party integrations
	include("integration.php");
}
echo '&showIps='.$showIps.'&showLoginError='.$showLoginError.'&textChatCharLimit='.$textChatCharLimit.'&allowLinksInTextChat='.$allowLinksInTextChat.'&buzzButtonEnabled='.$buzzButtonEnabled.'&adminCanKick='.$adminCanKick.'&adminCanBan='.$adminCanBan.'&adminCanViewPrivatePM='.$adminCanViewPrivatePM.'&disableGenderSelection='.$disableGenderSelection.'&sortorder='.$sortorder.'&tooltipsEnabled='.$tooltipsEnabled.'&highlightEmoteIcons='.$highlightEmoteIcons.'&toggleVisibilityEnabled='.$toggleVisibilityEnabled.'&adminIsVisible'.$adminIsVisible.'&backgroundImageScale='.$backgroundImageScale.'&backgroundImageAlpha='.$backgroundImageAlpha.'&backgroundImageUrl='.$backgroundImageUrl.'&coupleGenderEnabled='.$coupleGenderEnabled.'&secondsBetweenBuzzez='.$secondsBetweenBuzzez.'&freeVideoTime='.$freeVideoTime.'&sDate='.date("d_m_Y").'&maxIncomingVideoSpeed='.$maxIncomingVideoSpeed.'&allowSendAudioVideo='.$allowSendAudioVideo.'&maxcams='.$maxcams.'&fileSharingEnabled='.$fileSharingEnabled.'&maxUploadFileSize='.$maxUploadFileSize.'&showTimeStamps='.$showTimeStamps.'&playSoundOnmessage='.$playSoundOnmessage.'&bandwidthurl='.$bandwidthurl.'&autoStartCameras='.$autoStartCameras.'&jlmessages='.$jlmessages.'&privatemessages='.$privatemessages.'&fontsize='.$fontsize.'&autoStartMyCamera='.$autoStartMyCamera.'&usnminchars='.$usnminchars.'&changegender=' .$changegender .'&changeuser=' .$changeuser  . '&username='. $username .'&gender=' . $gender .'&connectionstring=' . $connectionstring . '&applyLangaugeFilter='.$applyLangaugeFilter.'&floatingMode='.$floatingMode.'&videoChatOnly='.$videoChatOnly.'&languageCode='.$languageCode.'&windowsColor='.$windowsColor.'&sendColor='.$sendColor.'&userCanDragWindows='.$userCanDragWindows.'&autoCloseCams='.$autoCloseCams.'&disableCameraWindowResize='.$disableCameraWindowResize.'&windowsFontColor='.$windowsFontColor.'&hideUsersList='.$hideUsersList.'&errorTextColor='.$errorTextColor.'&loginTextColor='.$loginTextColor;
?>